package com.za.wbw.service.shop.impl;

import com.za.wbw.dao.shop.UserDao;
import com.za.wbw.model.shop.UserInfo;
import com.za.wbw.service.shop.UserService;

public class UserServiceImpl implements UserService{
	private UserDao userDao;
	// 查询用户信息
	public UserInfo queryUserInfo(int userId) throws Exception {
		return getUserDao().queryUserInfo(userId);
	}
	// 更新用户信息
	public void updateUserInfo(UserInfo info) throws Exception {
		getUserDao().updateUserInfo(info);
	}
	// --------------------------------
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
}
